package chat_views

import "time"

type WsCode int

const (
	WSConnSuccess = iota + 20000
	WSConnErr
	WSSendMsg
	WSConnDisConnect
)

type WsType int

const (
	HeartBeatsType WsType = iota
	SendMsgType
	GetHistoryType
	DisConnectType
)

const (
	// ExpireMsg 消息过期时间
	ExpireMsg = time.Hour * 24 * 30 * 3

	// TimeDurationHeartBeats 连接时间限制
	TimeDurationHeartBeats = 60 * 5
)
